//
//  MainEuropeCell.m
//  OnePiece
//
//  Created by lanou on 15/10/28.
//  Copyright © 2015年 wsy. All rights reserved.
//

#import "MainEuropeCell.h"
#import <UIImageView+WebCache.h>
@implementation MainEuropeCell
- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    
    if ( self) {
        _cover_sView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, (SCREEN_WIDTH-90)/2, (SCREEN_WIDTH-90)/2)];
        _cover_sView.layer.masksToBounds = YES;
        _cover_sView.contentMode = UIViewContentModeScaleAspectFit;
        
        _nameLabel= [[UILabel alloc]initWithFrame:CGRectMake(0, (SCREEN_WIDTH-90)/2, (SCREEN_WIDTH-90)/2, 20)];
        _nameLabel.font = [UIFont systemFontOfSize:14];
        _nameLabel.textAlignment = NSTextAlignmentCenter;
        
        
        [self.contentView addSubview:_cover_sView];
        [self.contentView addSubview:_nameLabel];
        
    }
    
    return self;
    
}






-(void)setConfigureModel:(MainEuropeModel *)configureModel
{
    [_cover_sView sd_setImageWithURL:[NSURL URLWithString:configureModel.cover_s]];
    _nameLabel.text = configureModel.name;
}
@end

